package com.dy.lock.screen.service;

import java.util.List;

import com.dy.lock.screen.pojo.ChatInfo;
import com.dy.lock.screen.scoket.Head;

public interface ChatService {
	/**
	 * 保存信息
	 * 
	 * @param chatInfo
	 * @param head
	 * @return
	 */
	public int save(ChatInfo chatInfo, Head head);

	/**
	 * 根据商品id查询评论数量
	 * 
	 * @param goodsId
	 * @param head
	 * @return
	 */
	public Integer queryCountByGoodsId(String goodsId, Head head);

	public List<ChatInfo> getLastChatInfo(String goodsId);

	public List<ChatInfo> getAllChatInfo(String goodsId);
}
